package cn.tedu.tea.service;

import cn.tedu.tea.domain.param.GoodsCategoryAddNewDTO;
import cn.tedu.tea.domain.param.GoodsCategoryUpdateDTO;
import cn.tedu.tea.domain.vo.GoodsCategoryListVO;
import cn.tedu.tea.domain.vo.GoodsCategoryStandardVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface IGoodsCategoryService {

    String STATUS_TEXT[] = {"显示", "隐藏"};

    void addNew(GoodsCategoryAddNewDTO goodsCategoryAddNewDTO);

    void deleteById(Integer id);

    void deleteByIds(Integer[] ids);

    void updateInfoById(GoodsCategoryUpdateDTO goodsCategoryUpdateDTO);

    void setDisplay(Integer id);

    void setHidden(Integer id);

    GoodsCategoryStandardVO getStandardById(Integer id);

    List<GoodsCategoryListVO> list();

}
